package com.renyisima.wujiansima.demo;

import java.io.File;
import java.io.IOException;

public class Demo1 {
    public static void main(String[] args) throws IOException {
        File file = new File("D:\\tlias\\aaa.txt");
        boolean newFile = file.createNewFile();
        System.out.println(newFile);
        File file1 = new File("D:\\tlias\\aaa\\bbb\\ccc");
        boolean mkdirs = file1.mkdirs();
        System.out.println(mkdirs);
        String name = file1.getName();
        System.out.println(name);
        boolean exists = file.exists();
        System.out.println(exists);
        boolean file2 = file.isFile();
        System.out.println(file2);
    }
}
